<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户主页</title>
</head>
<%
	Object test=null;
	Object test1=null;
	Cookie[]cookies=request.getCookies();
	for(int i=0;cookies!=null&&i<cookies.length;i++)
	{
		if("userbean".equals(cookies[i].getName())){
			test=cookies[i].getValue();
			break;
		}
	}
	for(int i=0;cookies!=null&&i<cookies.length;i++)
	{
		if("role".equals(cookies[i].getName())){
			test1=cookies[i].getValue();
			break;
		}
	}
	if(test==null||test1.equals("admin")){
%>
	<jsp:forward page="loginin.jsp"></jsp:forward>
<% return;}%>
<frameset rows="15%,*,10%">
            <frame src="frms/head.jsp" noresize="noresize" scrolling="no" frameborder="0" style="background-color:  rgb(41, 96, 212);"/>
            <frameset cols="15%,*">
                <frame src="frms/menu.jsp"  scrolling="no" frameborder="0" />
                <frame src="" name="select" frameborder="0" />
            </frameset>
            <frame src="frms/foot.html" noresize="noresize" scrolling="no" frameborder="0" />
        </frameset> 
<body>
</body>
</html>
